package com.xuecheng.content.feignClient;

import com.xuecheng.content.model.dto.CourseIndex;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @description 搜索服务远程接口
 * @author Mr.M
 * @date 2022/9/20 20:29
 * @version 1.0
 */
@FeignClient(value = "search" ,fallbackFactory = SearchServiceClientFallbackFactory.class)
public interface SearchServiceClient {

    /**
     * @param courseIndex
     * @return
     * @Desc: 调用es 添加索引接口
     */
    @PostMapping("/search/index/course")
    public Boolean add(@RequestBody CourseIndex courseIndex);





}
